<?PHP
#
# author: Cody Sorgenfrey with Jason Sanchez
# (c) 2013 Casa De Bendicion
#

include_once("common.php");

$title= "Supporting Ministries";
$metaKey= null;
$metaDesc="About the ministries that support the Orphanage in Bachiniva Mexico.";
$moreHtml= null;
$moreJava= null;

startPage($title, $metaKey, $metaDesc, $moreHtml, $moreJava, $title);

connectSelectTest('supportingMinistries');

$result = mysql_query("SELECT * FROM `supportingMinistries` ORDER BY `id` ASC");

while ($ministry = mysql_fetch_array($result)) {

	$paragraph .= "<h3>".$ministry['name']."</h3>
				<p style='margin-top:-25px;'><a id='onBlue' href='http://".$ministry['website']."'>".$ministry['website']."</a></p>\n";
}

$first = mainBox($paragraph, "autoBox", "0px;");

$second = mailingBox("0px", "beliefs.php");

$third = "<div style='height:5px; width:705px;'></div>";

$fourth = "<div style='height:5px; width:250px;'></div>";

printPageTable($first, $second, $third, $fourth);

endPage();

?>